package com.fsgom.gool.repository;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class GoolShareRepositoryImpl implements GoolShareRepository {
	private static final String NAMESPACE = GoolShareRepositoryImpl.class.getName() + ".";
	
	@Autowired
	private SqlMapClientTemplate client;
	
	@Override
	public String selectShareUserLst(int userSeq) {
		return (String) client.queryForObject(NAMESPACE + "selectShareUserLst", userSeq);
	}

	@Override
	public void insertShareUserLst(Map<String, Object> params) {
		client.insert(NAMESPACE + "insertShareUserLst", params);
	}

	@Override
	public void updateShareUserLst(Map<String, Object> params) {
		client.update(NAMESPACE + "updateShareUserLst", params);
	}

}
